﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ServerSide.Model
{
    public class User
    {
        [Key]
        [Column("id")]
        public int Id { get; set; }
        [Column("username")]
        public String? UserName { get; set; }
        [Column("password")]
        public String? Password { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Column("gender")]
        public int? Gender { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Column("email")]
        public String? Email { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Column("phone")]
        public String? Phone { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [Column("headPhotoPath")]
        public String? HeadPhotoPath { get; set; }
        /// <summary>
        /// 验证令牌
        /// </summary>
        [Column("token")]
        public String? Token { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        [Column("birthday")]
        public String? Birthday { get; set; }
        /// <summary>
        /// token校验时间
        /// </summary>
        [Column("vaildTime")]
        public String? VaildTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("createBy")]
        public String? CreateBy { get; set; }
        /// <summary>
        /// 是否禁用
        /// </summary>
        [Column("enable")]
        public int? Enable { get; set; }
    }
}
